<!DOCTYPE html>
<html>

    <head>
        <meta charset="UTF-8">
        <title>{:COMPANY}</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="description" content="">
        <meta name="keywords" content="coco bootstrap template, coco admin, bootstrap,admin template, bootstrap admin,">
        <meta name="author" content="Huban Creative">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

        <!-- Base Css Files -->
        <link href="{:__BOOTSTRAP__}css/bootstrap.min.css" rel="stylesheet" />
        <link href="{:__CSS__}font-awesome/css/font-awesome.min.css" rel="stylesheet" />
        <link href="{:__CSS__}fontello/css/fontello.css" rel="stylesheet" />

        <!-- Extra CSS Libraries Start -->
        <link href="{:__CSS__}style.css" rel="stylesheet" type="text/css" />
        <link href="{:__CSS__}jquery.datetimepicker.css" rel="stylesheet" type="text/css" />
        <!-- Extra CSS Libraries End -->

        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->

        <link rel="shortcut icon" href="{:__IMG__}Besiness/favicon.ico">
    </head>

    <body>
        <!-- Start content-->
        <div class="content">
            <div class="widget">
                <div class="widget-content padding">
                    <section class="content">
                        <div class="widget">
                            <div class="widget-header transparent">
                                <h2><strong>新增微信菜单</strong></h2>
                            </div>
                            <div class="widget-content padding">
                                <form class="form-horizontal" action="/Admin/Menu/add_menu" method="post">
                                    <input class="form-control" name="menu_id" placeholder="" value="{$menu_info['menu_id']}" type="hidden" />
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">上级菜单：</label>
                                        <div class="col-sm-10">
                                            <select name="pid" class="form-control">
                                                <option value="0">一级菜单</option>
                                                <foreach name="menu_all" item="menu_all">
                                                    <option value="{$menu_all['menu_id']}">{$menu_all['menu_name']}</option>
                                                </foreach>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">菜单名称</label>
                                        <div class="col-sm-10">
                                            <input class="form-control" name="menu_name" placeholder="" value="{$menu_info['menu_name']}" type="text">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">类型</label>
                                        <div class="col-sm-10">
                                            <select class="form-control" name="type">
                                                <if condition="$menu_info['type'] eq 'view'">
                                                    <option value="view">view</option>
                                                    <option value="click">click</option>
                                                    <else />
                                                    <option value="click">click</option>
                                                    <option value="view">view</option>
                                                </if>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">url</label>
                                        <div class="col-sm-10">
                                            <input class="form-control" name="url" placeholder="" value="{$menu_info['url']}" type="text">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">关键词</label>
                                        <div class="col-sm-10">
                                            <input class="form-control" name="key" placeholder="" value="{$menu_info['key']}" type="text">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">排序</label>
                                        <div class="col-sm-10">
                                            <input class="form-control" name="sort" placeholder="" value="{$menu_info['sort']}" type="text">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">备注</label>
                                        <div class="col-sm-10">
                                            <input class="form-control" name="remark" placeholder="" value="{$menu_info['remark']}" type="text">
                                        </div>
                                    </div>
                                    <hr>
                                    <div class="form-group">
                                        <div class="col-sm-offset-2 col-sm-10">
                                            <button type="submit" class="btn btn-success">保存</button>
                                            <button type="button" class="btn btn-default" onclick="javascript:window.history.go(-1)">返回</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </section>
                </div>
            </div>
            <!-- Footer Start -->
            <div class="footer">Copyright &copy; {:COMPANY}</div>
            <!-- Footer End -->
        </div>
        <!-- End content-->
        <script type="text/javascript" src="{:__LIBS__}jquery/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="{:__JS__}common.js"></script>
        <script type="text/javascript" src="{:__JS__}ajaxfileupload.js"></script>
    </body>

</html>
